Components › Navigation › Section top bar › Title with entity tile

Title with entity tile

canon

Identity of the Section top bar: exactly one of icon, colour tile, avatar, heading dropdown or inline rename.

Rule confirmed in code on meeting detail (acrm !4014, 27 Sep 2026): a record that IS a thing, not an identity, gets the flat `icon` prop (20px, `--fg-secondary`) inherited from its section's menu mark — `MeetingDetailPage.tsx` passes `entityMark(...).icon` from the Kalendář mark, same as Deals/Tasks; no 32px `kind` tile, since a meeting is not a person or a company.

Used in 55 files · 49 areas · 70× — components/PageHeader, components/agent-desk, components/datamart, components/segment, pages/AccountingInvoiceDetailPage, pages/AccountingInvoiceEditPage …

Default

Firmy
components--title-with-entity-tile--defaultOpen standalone ↗Code

Variants

Úkoly
flat icon — the section is an icon row in the menu (Úkoly, Email, Hovory)
Projekty
colour tile — the section is a coloured sub-item in the menu; same glyph and tone as there, not a status
Josef Novák
avatar — a person's record; the initials and hue come from the name
heading dropdown — the title itself opens a menu (switching pipelines); it gets a chevron and a hover surface
Bonitní Pražané
inline rename — click the name, type, Enter saves and Escape cancels; nothing is saved when the value did not change
components--title-with-entity-tile--variantsOpen standalone ↗Code

States

bluepurplegreenlimeamberrosegrey
all seven tones — the tile carries the section's colour; nothing else in the bar is coloured
menu open — the heading keeps the open state so the reader sees where the menu belongs
Bonitní Pražané
saving a rename — the field cannot be reopened until the save comes back (renaming)
Retenční kampaň pro bonitní klienty Praha a Střední Čechy 2026
long name — the title takes the room it needs; the controls after it keep their place because the bar scrolls rather than squeezes
components--title-with-entity-tile--statesOpen standalone ↗Code

Composition

Josef Novák
Detail osoby — the identity is the avatar plus the name, and the name is editable in place; the record type is never spelled out in the title.
components--title-with-entity-tile--compositionOpen standalone ↗Code